home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmStringExtent.z / XmStringExtent
Encoding:
Text File  |  2003-11-18  |  2.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggEEEExxxxtttteeeennnntttt((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSttttrrrriiiinnnnggggEEEExxxxtttteeeennnntttt((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_t_r_i_n_g_E_x_t_e_n_t - A compound string function that determines
  10.       the size of the smallest rectangle that will enclose the
  11.       compound string
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.       #include <Xm/Xm.h>
  15.  
  16.       void XmStringExtent (ffffoooonnnnttttlllliiiisssstttt,,,, ssssttttrrrriiiinnnngggg,,,, wwwwiiiiddddtttthhhh,,,,    hhhheeeeiiiigggghhhhtttt)
  17.            _X_m_F_o_n_t_L_i_s_tffffoooonnnnttttlllliiiisssstttt;
  18.            _X_m_S_t_r_i_n_g     ssssttttrrrriiiinnnngggg;
  19.            _D_i_m_e_n_s_i_o_n ****wwwwiiiiddddtttthhhh;
  20.            _D_i_m_e_n_s_i_o_n ****hhhheeeeiiiigggghhhhtttt;
  21.  
  22.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.       _X_m_S_t_r_i_n_g_E_x_t_e_n_t determines the    width and height, in pixels,
  24.       of the smallest rectangle that will enclose the provided
  25.       compound string.
  26.  
  27.       ffffoooonnnnttttlllliiiisssstttt
  28.            Specifies the font list
  29.  
  30.       ssssttttrrrriiiinnnngggg
  31.            Specifies the string
  32.  
  33.       wwwwiiiiddddtttthhhh
  34.            Specifies a pointer to the width    of the rectangle
  35.  
  36.       hhhheeeeiiiigggghhhhtttt
  37.            Specifies a pointer to the height of the    rectangle
  38.  
  39.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  40.       _X_m_S_t_r_i_n_g_C_r_e_a_t_e(_3_X).
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.